﻿@{
    ViewBag.Title = "出口委托";
}

@section PSI_JS {
    <script src="@Url.Content("~/Scripts/PSI/App.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/PSI/BaseCode/LookupEditor.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/PSI/BaseCode/ClientsField.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/PSI/BaseCode/BizManField.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/PSI/BaseCode/VslField.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/PSI/BaseCode/CntTypeField.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/PSI/BaseCode/AddressField.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/PSI/BaseCode/CustomerField.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/PSI/BaseCode/CntOwnerField.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/PSI/BaseCode/PortField.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/PSI/OutConsignation/MainForm.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/PSI/OutConsignation/ConsignationEditForm.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/PSI/OutConsignation/ConsignationDetailEditForm.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/PSI/OutConsignation/UploadForm.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/PSI/OutConsignation/ConfirmForm.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>

<script src="@Url.Content("~/Scripts/PSI/BaseCode/LookupEditor.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/PSI/BaseCode/DispatcherField.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>

<script src="@Url.Content("~/Scripts/PSI/OutPlan/MakePlanMainForm.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/PSI/OutPlan/MakePlanForm.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/PSI/OutPlan/ChangeDispatcherForm.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>


<script src="~/Scripts/PSI/Vsl/EditForm.js"></script>
<script src="~/Scripts/PSI/Clients/EditForm.js"></script>
<script src="~/Scripts/PSI/BizMan/EditForm.js"></script>
<script src="~/Scripts/PSI/CntOwner/EditForm.js"></script>
<script src="~/Scripts/PSI/CntType/EditForm.js"></script>
<script src="~/Scripts/PSI/Address/EditForm.js"></script>
<script src="~/Scripts/PSI/Customer/EditForm.js"></script>
<script src="~/Scripts/PSI/BcDispatcher/EditForm.js"></script>
<script src="~/Scripts/PSI/Port/EditForm.js"></script>
}

<script type="text/javascript">
    Ext.onReady(function () {
        var userName = "@ViewBag.UserName";
        var app = Ext.create("PSI.App", {
            userName: userName
        });

        app.createMainUI();

        var mp = app.getMainPanel();

        var mainForm = Ext.create("PSI.OutConsignation.MainForm");
        var p = {
            canEdit: "@ViewBag.PermissionEdit",
            canConfirm: "@ViewBag.PermissionConfirm"
        };
        mainForm.setPermission(p);
        mainForm.setUserName(userName);
        mainForm.createUI();

        mp.add(mainForm.getMainPanel());
    });
</script>
